<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Title="Home" MaintainScrollPositionOnPostback="true" %>
<%@ Register Src="ViewAnnouncements.ascx" TagName="ViewAnn" TagPrefix="ucViewAnn" %>
<%@ Register Src="ViewEvents.ascx" TagName="ViewEvents" TagPrefix="ucViewEvents" %>
<%@ Register Src="login2.ascx" TagName="login" TagPrefix="ucLogin" %>
<%@ Register Src="ToCatalogButton.ascx" tagname="ToCatalog" tagprefix="ucToCatalog" %>
<%@ Register src="NewsletterSignup.ascx" tagname="NewsletterSignup" tagprefix="uc2" %>
<%@ MasterType TypeName="MasterPage"  %>
<%@ Register src="DiscontinueNewsletter.ascx" tagname="DiscontinueNewsletter" tagprefix="uc3" %>
<%@ Register src="EventContentResults.ascx" tagname="EventContentResults" tagprefix="uc4" %>
<%@ Register src="EventDetails.ascx" tagname="EventDetails" tagprefix="uc5" %>

<%--Left Side Content--%>
<asp:Content ID="Content1" ContentPlaceHolderID="leftSide" Runat="Server">
    <%--Drop Down List to select modes--%>
    <asp:DropDownList ID="ddSelectMode" runat="server" AutoPostBack="True"  OnSelectedIndexChanged="ddSelectMode_SelectedIndexChanged">
        <asp:ListItem Text="Browse" Value="Browse" ></asp:ListItem>
        <asp:ListItem Text="Design" Value="Design"></asp:ListItem>
        <asp:ListItem Text="Catalog" Value="Catalog"></asp:ListItem>
    </asp:DropDownList>
    
    <%--Link button to reset screen--%>
    <asp:LinkButton ID="lbReset" runat="server" onclick="lbReset_Click">Reset</asp:LinkButton>
    
    <%--Web part manager to manage the modules--%><asp:Label ID="lblError" 
        runat="server" Text="" Visible="false"></asp:Label><asp:WebPartManager ID="WebPartManager1" runat="server"></asp:WebPartManager>
    
    <%--Web part zone for left side--%>
    <asp:WebPartZone ID="WebPartZoneLeft" runat="server" LayoutOrientation="Vertical"
                     HeaderText="Left Column">
                     
        <%--Zone Template, this is where ascx files go--%>
        <ZoneTemplate>
            <ucLogin:login ID="login1" runat="server" Title="Login" />
            <ucViewAnn:ViewAnn ID="ViewAnn1" runat="server" Title="Announcements" />
            <uc2:NewsletterSignup ID="NewsletterSignup1" runat="server" Title="Newsletter Signup" />
        </ZoneTemplate>
    </asp:WebPartZone>
    
    <%--Catalog zone--%>
    <asp:CatalogZone ID="CatalogZone1" runat="server" >
        <ZoneTemplate>
            <asp:DeclarativeCatalogPart ID="DeclarativeCatalogPart1" runat="server">
                <WebPartsTemplate>
                    <ucViewEvents:ViewEvents ID="ViewEvents2" runat="server" Title="Calendar of Events" />
                    <ucViewAnn:ViewAnn ID="ViewAnn2" runat="server" Title="View Announcements" />
                    <uc2:NewsletterSignup ID="NewsletterSignup2" runat="server" Title="Newsletter Signup" />
                    <ucToCatalog:ToCatalog ID="ToCardCatalog1" runat="server" Title="To the Card Catalog" />
                    <ucLogin:login ID="login2" runat="server"  Title="Login" />
                    <uc3:DiscontinueNewsletter ID="DiscontinueNewsletter1" runat="server" Title="Discontinue Newsletter" />
                    <uc4:EventContentResults ID="EventContentResults1" runat="server" Title="Event Content Results" />
                    <uc5:EventDetails ID="EventDetails1" runat="server" Title="Event Details" />
                </WebPartsTemplate>
            </asp:DeclarativeCatalogPart>
        </ZoneTemplate>
    </asp:CatalogZone>
</asp:Content>


<%--Center column--%>
<asp:Content ID="Content3" ContentPlaceHolderID="center" Runat="Server">
    <asp:WebPartZone ID="WebPartZoneCenter" runat="server" LayoutOrientation="Vertical"
                     HeaderText="Center Column">
        <ZoneTemplate>
            <ucToCatalog:ToCatalog ID="ToCardCatalog1" runat="server" Title="To the Card Catalog" />
            <ucViewEvents:ViewEvents ID="ViewEvents1" runat="server" Title="Calendar of Events" />
        </ZoneTemplate>
    </asp:WebPartZone>
    
</asp:Content>



